package com.srit.recipes.dao;

import com.srit.recipes.common.parent.ParentDao;
import com.srit.recipes.entity.CodeInfo;
import com.srit.recipes.entity.RecipesNutrition;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

@Repository
public interface RecipesNutritionDao extends ParentDao<RecipesNutrition, String> {

    List<RecipesNutrition> findAllByCpIdIn(Set<String> ids);

    Page<RecipesNutrition> findAllByCpNameContains(String name, Pageable pageable);

    
}
